
package se.sll.service.catalogue.gui.api.model;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.constraints.NotNull;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;


/**
 * A single capacity
 * 
 */
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "codeSystem",
    "code",
    "displayName",
    "value",
    "validTo"
})
public class Capacity {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("codeSystem")
    @NotNull
    private String codeSystem;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("code")
    @NotNull
    private String code;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("displayName")
    @NotNull
    private String displayName;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("value")
    @NotNull
    private String value;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("validTo")
    @NotNull
    private Date validTo;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    /**
     * 
     * (Required)
     * 
     * @return
     *     The codeSystem
     */
    @JsonProperty("codeSystem")
    public String getCodeSystem() {
        return codeSystem;
    }

    /**
     * 
     * (Required)
     * 
     * @param codeSystem
     *     The codeSystem
     */
    @JsonProperty("codeSystem")
    public void setCodeSystem(String codeSystem) {
        this.codeSystem = codeSystem;
    }

    public Capacity withCodeSystem(String codeSystem) {
        this.codeSystem = codeSystem;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The code
     */
    @JsonProperty("code")
    public String getCode() {
        return code;
    }

    /**
     * 
     * (Required)
     * 
     * @param code
     *     The code
     */
    @JsonProperty("code")
    public void setCode(String code) {
        this.code = code;
    }

    public Capacity withCode(String code) {
        this.code = code;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The displayName
     */
    @JsonProperty("displayName")
    public String getDisplayName() {
        return displayName;
    }

    /**
     * 
     * (Required)
     * 
     * @param displayName
     *     The displayName
     */
    @JsonProperty("displayName")
    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public Capacity withDisplayName(String displayName) {
        this.displayName = displayName;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The value
     */
    @JsonProperty("value")
    public String getValue() {
        return value;
    }

    /**
     * 
     * (Required)
     * 
     * @param value
     *     The value
     */
    @JsonProperty("value")
    public void setValue(String value) {
        this.value = value;
    }

    public Capacity withValue(String value) {
        this.value = value;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The validTo
     */
    @JsonProperty("validTo")
    public Date getValidTo() {
        return validTo;
    }

    /**
     * 
     * (Required)
     * 
     * @param validTo
     *     The validTo
     */
    @JsonProperty("validTo")
    public void setValidTo(Date validTo) {
        this.validTo = validTo;
    }

    public Capacity withValidTo(Date validTo) {
        this.validTo = validTo;
        return this;
    }

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public Capacity withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

}
